## server

## 库路径
link_directories(${OUTPUT_PATH}/lib)

## includes src
include_directories (${PROJECT_PATH}/include/client)
include_directories (${PROJECT_PATH}/include/common)
include_directories (${PROJECT_PATH}/include/server/behavior)
include_directories (${PROJECT_PATH}/include/server/message)
include_directories (${PROJECT_PATH}/include/server/protocol)
include_directories (${PROJECT_PATH}/include/server/schedule)

## libprotocol.so
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC_CLIENT_PATH)
add_library(libevent_handler SHARED ${SRC_CLIENT_PATH})
set_target_properties(libevent_handler PROPERTIES OUTPUT_NAME "event_handler")
set_target_properties(libevent_handler PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(libevent_handler protocol msg c pthread stdc++)
add_dependencies     (libevent_handler libprotocol libmsg)



